#%s 占位，%(这个里面放真实的位置)
# 

print("name=%s,age=%s,sex=%s" %("alex",23,"M"))

print("name={},age={},sex={}".format("alex",23,"M") )

print("name={0},age={1},sex={2}".format("alex",23,"M"))

print("name={name},age={age},sex={sex}".format(name="alex",age=23,sex="M"))